// var http = require('http');
// http.createServer(function (req,res){
// 	res.writeHead(200 , {"Content-Type" : "text/html"});
// 	res.write("<html><body style=\"text-align: center; background-color: grey;\"><h1>My first Page</h1><ul><li>Good Good Study</li><li>Day Day Up</li></ul></body></html>");
// 	res.end();
// }).listen(8888);
// console.log("Your server is started @ http://localhost:8888");


var http = require('http');
var server = new http.Server();
server.on('request',function(req,res){
  res.writeHead(200,{"content-Type" : "text/html"});
  res.end("Hello,World!");
});
server.listen(3000);
console.log("Server is started @ http://localhost:3000");